/**
 * 
 */
package fr.inserm.um915.jimpute.model;

import java.io.File;
import java.io.IOException;

/**
 * @author lindenb
 *
 */
public abstract class ModelFactory
	{
	private File dbHome=null;
	private boolean readOnly=true;
	private boolean ignoreChecksumRead=false;
	public static ModelFactory newInstance()
		{
		return new Model.Factory();
		}
	
	public boolean isIgnoreChecksumRead() {
		return ignoreChecksumRead;
		}
	
	public void setIgnoreChecksumRead(boolean ignoreChecksumRead)
		{
		this.ignoreChecksumRead = ignoreChecksumRead;
		}
	
	public void setDbHome(File dbHome)
		{
		this.dbHome = dbHome;
		}
	
	public File getDbHome()
		{
		return dbHome;
		}
	
	public boolean isReadOnly()
		{
		return readOnly;
		}
	public void setReadOnly(boolean readOnly)
		{
		this.readOnly = readOnly;
		}
	public abstract Model open() throws IOException;
	}
